package com.apimarket.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Description:
 * @Author ZXR
 * @Date 2021/7/12 15:49
 * @Version 1.0
 */
@Data
@Table(name = "data_packet")
public class DataPacket {
    private String id;
    @NotNull
    private String name;
    private Date date;
    @NotNull
    private String format;//数据格式
    @NotNull
    private String num;//数据量，如：328条，250万条
    @NotNull
    private String size;//数据大小，如：25MB,18KB
    @NotNull
    private String url;//数据包的下载url
    @NotNull
    @Column(name = "dataset_id")
    private String datasetId; //dataset表中的id,外键
    @Column(name="download_url")
    private String downloadUrl;//前端点击下载链接请求的地址
}
